package cn.wolfcode.luowowo.acticle.query;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

/**
 * 游记查询条件
 */
@Getter
public class DestinationCondition {

    public static final Map<Integer, DestinationCondition> DEST_DAYS = new HashMap<>(); //旅游天数map集合

    static {

        //旅游天数
        DEST_DAYS.put(-1, new DestinationCondition(-1, Integer.MAX_VALUE));
        DEST_DAYS.put(1, new DestinationCondition(2, 3));
        DEST_DAYS.put(2, new DestinationCondition(4, 5));
        DEST_DAYS.put(3, new DestinationCondition(6, 9));
        DEST_DAYS.put(4, new DestinationCondition(10,Integer.MAX_VALUE));

    }


    private int min;
    private int max;


    public DestinationCondition(int min, int max){
        this.min = min;
        this.max = max;
    }
}
